#pragma once
#include "afxcmn.h"


// CProgressDlg dialog

class CProgressDlg : public CDialog
{
	DECLARE_DYNAMIC(CProgressDlg)

public:
	CProgressDlg(CString title, CWnd* pParent = NULL);   // standard constructor
	virtual ~CProgressDlg();

// Dialog Data
	enum { IDD = IDD_PROGRESS_DIALOG };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual BOOL OnInitDialog();
	DECLARE_MESSAGE_MAP()
	CWnd* pParent;

public:
	BOOL PreTranslateMessage(MSG* pMsg);

public:
	CString title;
	bool user_cancel;
	CProgressCtrl m_progress_process;
	afx_msg void OnBnClickedButtonCancel();
	afx_msg void OnTimer(UINT_PTR uid);
	afx_msg void OnDestroy();
	afx_msg void OnClose();
};
